// filemanagerDlg.h : header file
//

#pragma once
#include<set>
using namespace std;

// CfilemanagerDlg dialog
class CfilemanagerDlg : public CDialog
{
// Construction
public:
	CfilemanagerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_FILEMANAGER_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	CComboBox	m_combofolder;
	CStringArray	m_arrfolderpath;
	CListCtrl	m_listpostfix;
	CListCtrl	m_listfile;
	CListCtrl	m_listfolder;
	CListCtrl	m_listpostfixdel;
	CListCtrl	m_listfiledel;
	CListCtrl	m_listfolderdel;
	set<CString>	m_setpostdel;
	set<CString>	m_setfiledel;
	set<CString>	m_setfolderdel;

	CComboBox	m_combofolder_d;
	CStringArray	m_arrfolderpath_d;
public:
	void init();
	void SaveRegistry();
	void AnalyseFolder(CString strpath);
public:
	afx_msg void OnBnClickedButtonBrowse();
	virtual BOOL DestroyWindow();
	afx_msg void OnCbnSelchangeComboFolder();
	afx_msg void OnBnClickedButtonPostTo();
	afx_msg void OnBnClickedButtonPostBack();
	afx_msg void OnBnClickedButtonFolderTo();
	afx_msg void OnBnClickedButtonFolderBack();
	afx_msg void OnBnClickedButtonFileTo();
	afx_msg void OnBnClickedButtonFileBack();
	afx_msg void OnBnClickedButtonFilter();

	afx_msg void OnBnClickedButtonBrowse_d();
	afx_msg void OnBnClickedButtonFilter_d();
};
